4be4641fffefc3c928bfeefc73c32929107949bc,src/android/libs/SalesforceHybrid/src/com/salesforce/androidsdk/phonegap/plugin/SmartStorePlugin.java,SmartStorePlugin,getSmartStore,#JSONObject#,663

Before Change


    private SmartStore getSmartStore(JSONObject arg0) {
        boolean isGlobal = getIsGlobal(arg0);
		String  storeName = getStoreName(arg0);
        return (isGlobal
                ? SmartStoreSDKManager.getInstance().getGlobalSmartStore(storeName)
                : SmartStoreSDKManager.getInstance().getSmartStore(storeName,UserAccountManager.getInstance().getCurrentUser(),UserAccountManager.getInstance().getCurrentUser().getCommunityId()));
    }

	/**

After Change


     * @return
     */
    public static SmartStore getSmartStore(JSONObject arg0) throws Exception {
        boolean isGlobal = getIsGlobal(arg0);
		final String storeName = getStoreName(arg0);
        if (isGlobal) {
            return SmartStoreSDKManager.getInstance().getGlobalSmartStore(storeName);
        } else {
            final UserAccount account = UserAccountManager.getInstance().getCurrentUser();
            if (account == null) {
                throw new Exception("No user account found");
            }  else {
                return SmartStoreSDKManager.getInstance().getSmartStore(storeName, account, account.getCommunityId());
            }
        }
    }